package com.taoz.mianshiwa.commentservice.model.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName comment
 */
@TableName(value ="comment")
@Data
public class Comment implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 回复的评论id，为0表示不是回复
     */
    private Long replyId;

    /**
     * 题库id
     */
    private Long bankId;

    /**
     * 评论用户id
     */
    private Long userId;

    /**
     * 评论内容详情
     */
    private String detail;

    /**
     * 点赞数
     */
    private Integer likes;

    /**
     * 0：正常 1：封禁 2：审核中
     */
    private Integer state;

    /**
     * 创建时间
     */
    private Date createTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}